import request from '@/utils/request'

// 查询作品管理列表
export function listWorks(query) {
    return request({
        url: '/business/works/list',
        method: 'get',
        params: query
    })
}

// 查询作品管理详细
export function getWorks(worksId) {
    return request({
        url: '/business/works/' + worksId,
        method: 'get'
    })
}

// 新增作品管理
export function addWorks(data) {
    return request({
        url: '/business/works',
        method: 'post',
        data: data
    })
}

// 修改作品管理
export function updateWorks(data) {
    return request({
        url: '/business/works',
        method: 'put',
        data: data
    })
}

// 删除作品管理
export function delWorks(worksId) {
    return request({
        url: '/business/works/' + worksId,
        method: 'delete'
    })
}
